﻿<controls:ChildWindow x:Class="Silverlight.EditSqlServerDialog"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="200" 
           Title="Sql Server">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Vertical">
            <TextBlock TextWrapping="Wrap" Text="Server name" FontWeight="Bold"/>
            <Grid Height="24">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                <TextBox Text="{Binding Name, Mode=TwoWay}" MinWidth="100"/>
                <TextBlock Text=".database.windows.net" Grid.Column="1" VerticalAlignment="Bottom" />
            </Grid>
            <TextBlock TextWrapping="Wrap" Text="User name" FontWeight="Bold"/>
            <TextBox Text="{Binding User, Mode=TwoWay}"/>
            <TextBlock TextWrapping="Wrap" Text="Password" FontWeight="Bold"/>
            <PasswordBox Password="{Binding Password, Mode=TwoWay}"/>
        </StackPanel>
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>